package com.xjl.design.pattern.structural.decorator.v2;

/**
 * 抽象的装饰类
 */
public abstract class AbstractDecorator extends AbstrabctBettercake {
   private AbstrabctBettercake abstrabctBettercake;

    public AbstractDecorator(AbstrabctBettercake abstrabctBettercake) {
        this.abstrabctBettercake = abstrabctBettercake;
    }

    @Override
    protected String getDesc() {
        return this.abstrabctBettercake.getDesc();
    }

    @Override
    protected int cost() {
        return this.abstrabctBettercake.cost();
    }
}
